<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:88:"/home/wwwroot/oa.besttricycle.local/public/../application/cdyoa/view/adminuser/info.html";i:1487991876;s:80:"/home/wwwroot/oa.besttricycle.local/public/../application/cdyoa/view/layout.html";i:1487991876;s:85:"/home/wwwroot/oa.besttricycle.local/public/../application/cdyoa/view/layout/head.html";i:1487991876;s:85:"/home/wwwroot/oa.besttricycle.local/public/../application/cdyoa/view/layout/foot.html";i:1487991876;}*/ ?>
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/vendor/html5.js"></script>
<script type="text/javascript" src="/vendor/respond.min.js"></script>
<script type="text/javascript" src="/vendor/PIE_IE678.js"></script>
<![endif]-->
<!-- h-ui框架 -->
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="/vendor/Hui-iconfont/1.0.8/iconfont.css" />

<!-- h-ui后台样式 -->
<link rel="stylesheet" type="text/css" href="/static/admin/skin/default/skin.css"/>
<link rel="stylesheet" type="text/css" href="/static/admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="/vendor/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->

<!-- layui -->
<link rel="stylesheet" type="text/css" href="/vendor/layui/css/layui.css" />

<!-- jquery -->
<script type="text/javascript" src="/vendor/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/static/admin/js/H-ui.js"></script>

<!-- iphone开关 -->
<link rel="stylesheet" type="text/css" href="/vendor/bootstrap-Switch/bootstrapSwitch.css" />
<script language="javascript" src="/vendor/bootstrap-Switch/bootstrapSwitch.js"></script>

<!-- 编辑器插件 -->
<link rel="stylesheet" href="/vendor/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="/vendor/kindeditor/kindeditor-all-min.js"></script>

<!-- loading插件 start -->
<script type="text/javascript" src="/vendor/jquery.ShowLoading/1.0/jquery.ShowLoading.js"></script>
<link href="/vendor/jquery.ShowLoading/1.0/jquery.ShowLoading.css" rel="stylesheet">
<!-- loading插件 end -->
<style>
table .Hui-iconfont{font-size:20px;}
table td a.ml-5{text-decoration:none;}
#com_body .bgtr td{color:red;}
</style>
<title>内页框架</title>
</head>
<body>
<?php if(isset($nav)):?>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 
	首页 
	<span class="c-gray en">&gt;</span> 
	<?php echo isset($nav[0])? $nav[0] : "未定义";?> 
	<span class="c-gray en">&gt;</span> 
	<?php echo isset($nav[1])? $nav[1] : "未定义";?>
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
	<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<?php endif;?>
	<article class="page-container">
	<form class="layui-form" action="<?php echo url('adminuser/info'); ?>">
	  <div class="layui-form-item">
	    <label class="layui-form-label">昵称</label>
	    <div class="layui-input-block">
	      <input type="text" class="layui-input" value="<?php echo $userinfo['username']; ?>" disabled='disabled'>
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">头像</label>
	    <div class="layui-input-block">
			<input type="file" name="file" lay-type="file" lay-title="请上传头像" _url="<?php echo url('c/up','dir=attach&f=avatar'); ?>" onclick="c_up(this)">
			<span _span="avatar">
			<?php if($info['avatar']): if(com_check_type($info['avatar'])): ?>
					<img src="\<?php echo $info['avatar']; ?>" height=50 />
				<?php else: ?>
					<?php echo $info['avatar']; endif; ?>
				<input type='checkbox' name='del_avatar' value='1' title='删除' />
			<?php endif; ?>
			</span>
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">姓名</label>
	    <div class="layui-input-block">
	      <input type="text" name="name" lay-verify="required" class="layui-input" placeholder="请填写姓名" value="<?php echo $info['name']; ?>">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">电话</label>
	    <div class="layui-input-block">
	      <input type="text" name="phone" class="layui-input" placeholder="请填写电话 可不填 " value="<?php echo $info['phone']; ?>">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">邮箱</label>
	    <div class="layui-input-block">
	      <input type="text" name="email" class="layui-input" placeholder="请填写邮箱 可不填 " value="<?php echo $info['email']; ?>">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">修改密码</label>
	    <div class="layui-input-block">
	      <input type="password" name="password" class="layui-input" placeholder="修改密码  不填写则为不修改" value="">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <label class="layui-form-label">确认密码</label>
	    <div class="layui-input-block">
	      <input type="password" lay-verify="equalto" class="layui-input" placeholder="请再次确认修改密码" value="">
	    </div>
	  </div>
	  <div class="layui-form-item">
	    <div class="layui-input-block">
	      <button class="layui-btn" lay-submit="" lay-filter="form">提交</button>
	    </div>
	  </div>
	</form>
</article>
<script>
$().ready(function(){
	form.verify({
		equalto: function(value) { 
	        if($("[name='password']").val()!='' && $("[name='password']").val()!=value){
	        	return '密码不一致';
	        }
	    },
	});	
});
</script>
</body>
<script type="text/javascript" src="/vendor/layui/layui.js"></script>
<script type="text/javascript" src="/vendor/layui/lay/dest/layui.all.js"></script>   
<script type="text/javascript" src="/vendor/cfunction.js"></script>
</html>